package com.jrh.domain.like;

public class DoLikeResult {

    /** 成功 */
    public static final int SUCCESS                     = 0;

    /** 已经喜欢了 */
    public static final int ERROR_CODE_LIKED            = 1;

    /** 未登录 */
    public static final int ERROR_CODE_NO_lOGIN         = 2;

    /** 参数错误 */
    public static final int ERROR_CODE_ILLEGAL_ARGUMENT = 8;

    /** 系统异常 */
    public static final int ERROR_CODE_SYS              = 9;

    /** 是否喜欢成功 */
    private boolean         success                     = false;

    /** 错误代码 */
    private int             error                       = ERROR_CODE_SYS;

    public DoLikeResult(){

    }

    public DoLikeResult(boolean success, int error){
        super();
        this.success = success;
        this.error = error;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getError() {
        return error;
    }

    public void setError(int error) {
        this.error = error;
    }

}
